Contents | Index | < Browse | Browse >

LETTERmemchrULETTER Searches memory for a character.

Overview
#include <string.h>

pos = memchr(start,ch,size);

void *pos;
const void *start;
int ch;
size_t size;

Portability
ANSI

Description
Searches the memory block, which starts at "start" and which is "size" bytes long, for the first occurence of the character "ch".

Returns
A pointer to the memory location where the character was found or NULL if the character was not found.